package com.gary.cloud.controller;

import com.gary.cloud.service.OrderService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author peng_rui
 * @date 2022/4/19
 */
@RestController
@RequestMapping(value = "/api/gary/order")
public class OrderController {

    @Resource
    private OrderService orderService;

    @RequestMapping(value = "/buy", method = RequestMethod.GET)
    public String buy() {
        orderService.buy();
        return "success";
    }
}
